<%-- 
    Document   : kecelakaan-kerja-update
    Created on : 14 Sep 11, 10:05:11
    Author     : Bayu
--%>

<%--
    Document   : tpsaverage-update
    Created on : 28 Jun 11, 13:10:08
    Author     : Bayu
--%>

<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <jsp:include page="includes/script.html"/>

        <title>Input</title>
    </head>

    <body>
        <center>
        <h2>Average Data Update</h2>
        <br>

        <form method="post">


            <c:forEach items="${data}" var="data">
            <table>
                <tr>

                    <td>Month</td>
                    <td>&nbsp:&nbsp;<fmt:formatDate pattern="MMM yyyy" value="${data.month}" /><input type="hidden" name="month" value="${data.month}"></td>
                </tr>
                <tr>
                        <td>Total Kecelakaan</td>
                        <td><input type="text" name="total" value="${data.total}"></td>

                </tr>
                 
                <tr>
                    <td colspan="2" align="right"><input  type="submit" name="submit" value="Save" ></td>
                </tr>
            </table>
            </c:forEach>
        </form>

</center>

    </body>
</html>
